//
//  UIView+ZY.h
//  ShareParking
//
//  Created by STAR on 2017/7/26.
//  Copyright © 2017年 zjw. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (ZY)
- (nullable UIImage *)snapshotImage;
- (void)removeAllSubviews;
- (void)layerBordWidth:(CGFloat)width color:(UIColor *_Nullable)color;
/**
 ** lineView:       需要绘制成虚线的view
 ** lineLength:     虚线的宽度
 ** lineSpacing:    虚线的间距
 ** lineColor:      虚线的颜色
 **/
- (void)drawDashlineLength:(int)lineLength lineSpacing:(int)lineSpacing lineColor:(UIColor * _Nullable)lineColor;

- (void)drawDashlineLength:(int)lineLength lineSpacing:(int)lineSpacing  lineHeight:(CGFloat)height  lineColor:(UIColor *)lineColor;
/**
 截图
 @param size 大小
 */
- (nullable UIImage *)screenshotForSize:(CGSize)size;


@property (nullable, nonatomic, readonly) UIViewController *viewController;

@property (nonatomic, assign) CGFloat sn_left;
@property (nonatomic, assign) CGFloat sn_top;
@property (nonatomic, assign) CGFloat sn_right;
@property (nonatomic, assign) CGFloat sn_bottom;
@property (nonatomic, assign) CGFloat sn_width;
@property (nonatomic, assign) CGFloat sn_height;
@property (nonatomic, assign) CGFloat sn_centerX;
@property (nonatomic, assign) CGFloat sn_centerY;
@property (nonatomic, assign) CGPoint sn_origin;
@property (nonatomic, assign) CGSize sn_size;


@end
